Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@spectrum-web-components/popover
Advanced tools
An **sp-popover** is used to display transient content (menus, options, additional actions etc.) and appears when clicking/tapping on a source (tools, buttons, etc.) It stands out via its visual style (stroke and drop shadow) and floats on top of the rest
An sp-popover is used to display transient content (menus, options, additional actions etc.) and appears when clicking/tapping on a source (tools, buttons, etc.) It stands out via its visual style (stroke and drop shadow) and floats on top of the rest of the interface. This component does not implement the actual overlay behavior and interactions. This is handled in the Overlay Root
and Overlay Trigger
.
npm install @spectrum-web-components/popover
# or
yarn add @spectrum-web-components/popover
<div
style="
color: var(--spectrum-global-color-gray-800);
height: 200px;
position: relative;
width: 320px;
"
>
<sp-popover dialog open>
<div
style="
font-size: 18px;
font-weight: 700;
padding-bottom: 30px;
"
>
Popover title
</div>
<div style="font-size: 14px">
Cupcake ipsum dolor sit amet jelly beans. Chocolate jelly caramels.
Icing soufflé chupa chups donut cheesecake. Jelly-o chocolate cake
sweet roll cake danish candy biscuit halvah
</div>
</sp-popover>
</div>
Default popover with no tip and no placement. Popovers will fill up the space of they're containing element by default. The default popover has no padding by default
<div
style="
color: var(--spectrum-global-color-gray-800);
height: 200px;
position: relative;
width: 320px;
"
>
<sp-popover variant="default" open style="max-width: 320px">
<div style="font-size: 14px; padding: 10px">
<div
style="
font-size: 18px;
font-weight: 700;
padding-bottom: 30px;
"
>
Popover title
</div>
<div style="font-size: 14px">
Cupcake ipsum dolor sit amet jelly beans. Chocolate jelly
caramels. Icing soufflé chupa chups donut cheesecake. Jelly-o
chocolate cake sweet roll cake danish candy biscuit halvah
</div>
</div>
</sp-popover>
</div>
Popovers with padding, ideal for dialogs.
<div
style="
color: var(--spectrum-global-color-gray-800);
height: 200px;
position: relative;
width: 320px;
"
>
<sp-popover dialog open>
<div
style="
font-size: 18px;
font-weight: 700;
padding-bottom: 30px;
"
>
Popover title
</div>
<div style="font-size: 14px">
Cupcake ipsum dolor sit amet jelly beans. Chocolate jelly caramels.
Icing soufflé chupa chups donut cheesecake. Jelly-o chocolate cake
sweet roll cake danish candy biscuit halvah
</div>
</sp-popover>
</div>
<div
style="
color: var(--spectrum-global-color-gray-800);
height: 200px;
position: relative;
width: 320px;
"
>
<sp-popover dialog placement="bottom" tip open>
<div
style="
font-size: 18px;
font-weight: 700;
padding-bottom: 30px;
"
>
Popover title
</div>
<div style="font-size: 14px">
Cupcake ipsum dolor sit amet jelly beans. Chocolate jelly caramels.
Icing soufflé chupa chups donut cheesecake. Jelly-o chocolate cake
sweet roll cake danish candy biscuit halvah
</div>
</sp-popover>
</div>
<div
style="
color: var(--spectrum-global-color-gray-800);
height: 200px;
position: relative;
width: 320px;
"
>
<sp-popover dialog placement="top" tip open>
<div
style="
font-size: 18px;
font-weight: 700;
padding-bottom: 30px;
"
>
Popover title
</div>
<div style="font-size: 14px">
Cupcake ipsum dolor sit amet jelly beans. Chocolate jelly caramels.
Icing soufflé chupa chups donut cheesecake. Jelly-o chocolate cake
sweet roll cake danish candy biscuit halvah
</div>
</sp-popover>
</div>
<div
style="
color: var(--spectrum-global-color-gray-800);
height: 200px;
position: relative;
width: 320px;
"
>
<sp-popover dialog placement="left" tip open>
<div
style="
font-size: 18px;
font-weight: 700;
padding-bottom: 30px;
"
>
Popover title
</div>
<div style="font-size: 14px">
Cupcake ipsum dolor sit amet jelly beans. Chocolate jelly caramels.
Icing soufflé chupa chups donut cheesecake. Jelly-o chocolate cake
sweet roll cake danish candy biscuit halvah
</div>
</sp-popover>
</div>
<div
style="
color: var(--spectrum-global-color-gray-800);
height: 200px;
position: relative;
width: 320px;
"
>
<sp-popover dialog placement="right" tip open>
<div
style="
font-size: 18px;
font-weight: 700;
padding-bottom: 30px;
"
>
Popover title
</div>
<div style="font-size: 14px">
Cupcake ipsum dolor sit amet jelly beans. Chocolate jelly caramels.
Icing soufflé chupa chups donut cheesecake. Jelly-o chocolate cake
sweet roll cake danish candy biscuit halvah
</div>
</sp-popover>
</div>
FAQs
An `<sp-popover>` is used to display transient content (menus, options, additional actions etc.) and appears when clicking/tapping on a source (tools, buttons, etc.) It stands out via its visual style (stroke and drop shadow) and floats on top of the rest
We found that @spectrum-web-components/popover demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.